package com.wkbb.common.enums;

/**
 * @author yangdaofang
 * 创建时间：2020-05-15 16:21
 */
public enum SmartSubscribeEnum {

    /**
     * 取消关注
     */
    NOTSUBSCRIBE(0,"取消关注"),
    /**
     * 关注
     */
    SUBSCRIBE(1,"关注");


    private SmartSubscribeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (SmartSubscribeEnum smartSubscribeEnum : SmartSubscribeEnum.values()) {
            if (smartSubscribeEnum.getValue().intValue()==value) {
                return smartSubscribeEnum.getDesc();
            }
        }
        return null;
    }
}
